﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DHYHN.ASPNET.HoiNghi
{
    public partial class WebForm7 : System.Web.UI.Page
    {
        protected void lblOke_Click(object sender, EventArgs e)
        {
            lblMeseage.Visible = false;
            
                Business bus = new Business();
                string pemisstion = "";
                if (bus.CheckLogin(txtUserID.Text, txtPass.Text, out pemisstion))
                {
                    Session[Common.Constant.MyUserIDLogin] = txtUserID.Text;
                    Session[Common.Constant.MyPemissionLogin] = pemisstion;

                    Response.Redirect("Default.aspx");
                }
                else
                {
                    lblMeseage.Text = "Bạn nhập sai thông tin tài khoản!";
                    lblMeseage.Visible = true;
                }
            
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Write("sdfs");
        }
    }
}